<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/ext-lang-zh_CN.js"></script>
<!--  <script type="text/javascript" src="js/user2.js"></script>-->
<title>ExtJS</title>

<script type="text/javascript">  
var aData = [["f11","f12"],["f21","f22"]];
var w, grid;
Ext.onReady(function(){
 
    var store = new Ext.data.Store({
        proxy:new Ext.data.MemoryProxy(aData),
        reader:new Ext.data.ArrayReader({},[{name:'f1'},{name:'f2'}])
    });
    store.load();
 
    var columns = new Ext.grid.ColumnModel([
        {header: '字段1', dataIndex: 'f1'},
        {header: '字段2', dataIndex: 'f2'}
    ]);
 
    grid = new Ext.grid.GridPanel({
        title: '信息列表',
        renderTo: 'pad',
        loadMask: true,
        store: store,
        cm: columns,autoHeight:true,
        sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
        tbar:[{text:'权限设置',handler:function(){w.show();}}]
    });
    w = new Ext.Window({
       contentEl:"win",
       width:300,
       height:200,closeAction:'hide',
       html:'<iframe src="test1.jsp"></iframe>',
       title:"标题" 
    });
});
   
  </script> 

</head>
<body>
adad
ssdsdsdw
<!--<c:forEach items="${userlist}" var="user">
<tr>
<td><c:out value="${user.userid}" ></c:out></td>
<td><c:out value="${user.username}" ></c:out></td>
<td><c:out value="${user.password}" ></c:out></td>
        
</tr>

</c:forEach>

</table>
</form>
-->
<div id="pad"></div>
<div id="win" class="x-hidden"></div>
dasdsadasdad
</body>
</html>
